package com.zk.nacosprovider.Entity;

import java.io.Serializable;

public class order1 implements Serializable {
    private String orderid;

    private String commodityid;

    private Integer number;

    private String consumername;

    private String expresscompany;

    private String shippingaddress;

    private String receivingaddress;

    private String consumerphonenum;

    private Integer total;

    private String fromwarehouseid;

    private Integer falsedeletion;

    private static final long serialVersionUID = 1L;

    public String getOrderid() {
        return orderid;
    }

    public void setOrderid(String orderid) {
        this.orderid = orderid == null ? null : orderid.trim();
    }

    public String getCommodityid() {
        return commodityid;
    }

    public void setCommodityid(String commodityid) {
        this.commodityid = commodityid == null ? null : commodityid.trim();
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public String getConsumername() {
        return consumername;
    }

    public void setConsumername(String consumername) {
        this.consumername = consumername == null ? null : consumername.trim();
    }

    public String getExpresscompany() {
        return expresscompany;
    }

    public void setExpresscompany(String expresscompany) {
        this.expresscompany = expresscompany == null ? null : expresscompany.trim();
    }

    public String getShippingaddress() {
        return shippingaddress;
    }

    public void setShippingaddress(String shippingaddress) {
        this.shippingaddress = shippingaddress == null ? null : shippingaddress.trim();
    }

    public String getReceivingaddress() {
        return receivingaddress;
    }

    public void setReceivingaddress(String receivingaddress) {
        this.receivingaddress = receivingaddress == null ? null : receivingaddress.trim();
    }

    public String getConsumerphonenum() {
        return consumerphonenum;
    }

    public void setConsumerphonenum(String consumerphonenum) {
        this.consumerphonenum = consumerphonenum == null ? null : consumerphonenum.trim();
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public String getFromwarehouseid() {
        return fromwarehouseid;
    }

    public void setFromwarehouseid(String fromwarehouseid) {
        this.fromwarehouseid = fromwarehouseid == null ? null : fromwarehouseid.trim();
    }

    public Integer getFalsedeletion() {
        return falsedeletion;
    }

    public void setFalsedeletion(Integer falsedeletion) {
        this.falsedeletion = falsedeletion;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        order1 other = (order1) that;
        return (this.getOrderid() == null ? other.getOrderid() == null : this.getOrderid().equals(other.getOrderid()))
            && (this.getCommodityid() == null ? other.getCommodityid() == null : this.getCommodityid().equals(other.getCommodityid()))
            && (this.getNumber() == null ? other.getNumber() == null : this.getNumber().equals(other.getNumber()))
            && (this.getConsumername() == null ? other.getConsumername() == null : this.getConsumername().equals(other.getConsumername()))
            && (this.getExpresscompany() == null ? other.getExpresscompany() == null : this.getExpresscompany().equals(other.getExpresscompany()))
            && (this.getShippingaddress() == null ? other.getShippingaddress() == null : this.getShippingaddress().equals(other.getShippingaddress()))
            && (this.getReceivingaddress() == null ? other.getReceivingaddress() == null : this.getReceivingaddress().equals(other.getReceivingaddress()))
            && (this.getConsumerphonenum() == null ? other.getConsumerphonenum() == null : this.getConsumerphonenum().equals(other.getConsumerphonenum()))
            && (this.getTotal() == null ? other.getTotal() == null : this.getTotal().equals(other.getTotal()))
            && (this.getFromwarehouseid() == null ? other.getFromwarehouseid() == null : this.getFromwarehouseid().equals(other.getFromwarehouseid()))
            && (this.getFalsedeletion() == null ? other.getFalsedeletion() == null : this.getFalsedeletion().equals(other.getFalsedeletion()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getOrderid() == null) ? 0 : getOrderid().hashCode());
        result = prime * result + ((getCommodityid() == null) ? 0 : getCommodityid().hashCode());
        result = prime * result + ((getNumber() == null) ? 0 : getNumber().hashCode());
        result = prime * result + ((getConsumername() == null) ? 0 : getConsumername().hashCode());
        result = prime * result + ((getExpresscompany() == null) ? 0 : getExpresscompany().hashCode());
        result = prime * result + ((getShippingaddress() == null) ? 0 : getShippingaddress().hashCode());
        result = prime * result + ((getReceivingaddress() == null) ? 0 : getReceivingaddress().hashCode());
        result = prime * result + ((getConsumerphonenum() == null) ? 0 : getConsumerphonenum().hashCode());
        result = prime * result + ((getTotal() == null) ? 0 : getTotal().hashCode());
        result = prime * result + ((getFromwarehouseid() == null) ? 0 : getFromwarehouseid().hashCode());
        result = prime * result + ((getFalsedeletion() == null) ? 0 : getFalsedeletion().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", orderid=").append(orderid);
        sb.append(", commodityid=").append(commodityid);
        sb.append(", number=").append(number);
        sb.append(", consumername=").append(consumername);
        sb.append(", expresscompany=").append(expresscompany);
        sb.append(", shippingaddress=").append(shippingaddress);
        sb.append(", receivingaddress=").append(receivingaddress);
        sb.append(", consumerphonenum=").append(consumerphonenum);
        sb.append(", total=").append(total);
        sb.append(", fromwarehouseid=").append(fromwarehouseid);
        sb.append(", falsedeletion=").append(falsedeletion);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}